#!/Library/Frameworks/Python.framework/Versions/Current/bin/python

import sys
import wsgiref.handlers
import whiff.resolver

# import the root directory containing the charts
sys.path.append("/Users/Aaron/work/whiff/demo/amcharts")
import testdir

# create a WSGI application to serve the whiffTest directory
application = whiff.resolver.moduleRootApplication("/cgi-bin/amCharts.cgi", testdir)

# serve a CGI request using the directory
wsgiref.handlers.CGIHandler().run(application)
